Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat[fork]: add set_code, get_storage, set_storage to boa.env #210

Merged
merged 7 commits into from
May 8, 2024

Conversation

DanielSchiavini
Copy link
Collaborator

Fixes #204

image

boa/environment.py Outdated Show resolved Hide resolved
boa/environment.py Outdated Show resolved Hide resolved
boa/environment.py Outdated Show resolved Hide resolved
boa/vm/fork.py Outdated Show resolved Hide resolved
Comment on lines 9 to 20
def test_balance_non_fork():
with pytest.raises(NotImplementedError):
NetworkEnv.set_balance(boa.env, address, 0)


def test_code_non_fork():
with pytest.raises(AssertionError):
with pytest.raises(NotImplementedError):
NetworkEnv.set_code(boa.env, address, b"")


def test_storage_non_fork():
with pytest.raises(AssertionError):
with pytest.raises(NotImplementedError):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test names should be updated

@charles-cooper charles-cooper merged commit 4eaa59e into vyperlang:master May 8, 2024
7 of 9 checks passed
@DanielSchiavini DanielSchiavini deleted the feat/forked-state branch June 3, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide a higher-level API to manipulate forked-network state
2 participants